<? if ($this->pageCount): ?>
<ul class="pagination">
  <li <? if (!isset($this->previous)): ?>class="disabled"<? endif; ?>><a href="<? echo $this->url(array('page' => $this->previous)); ?>">&laquo;</a></li>
  <? foreach ($this->pagesInRange as $page): ?>
    <li <? if ($page == $this->current): ?>class="active"<? endif; ?>><a href="<? echo $this->url(array('page' => $page)); ?>"><? echo $page; ?></a></li>
  <? endforeach; ?>
  <li <? if (!isset($this->next)): ?>class="disabled"<? endif; ?>><a href="<? echo $this->url(array('page' => $this->next)); ?>">&raquo;</a></li>
</ul>
<? endif; ?>


